<div class="section">
		<div class="box">
			<div class="title">
				<h2><?=Yii::t('app','Добавление Категории')?></h2>
				<span class="hide"></span>
			</div>
<div class="content forms">
    <?$form=$this->beginWidget('CActiveForm', array(
        'id'=>'addnews-form',
        'enableAjaxValidation'=>true,
    )); ?>
    <?=$form->errorSummary($model); ?>


    <div class="line" style="border-top-width: 2px; border-top-style: solid; border-top-color: rgb(242, 244, 247); border-bottom-width: 2px; border-bottom-style: solid; border-bottom-color: rgb(242, 244, 247); ">
        <?=$form->label($model,'title'); ?>
        <?=CHtml::activeTextField($model,'title',array('class'=>'xl')); ?>
    </div>
    <div class="line">
        <?=$form->label($model,'pid'); ?>
        <?=CHtml::activeDropDownList($model,'pid',CHtml::listData(CompanyCategories::model()->findAll(array('condition'=>'type='.$type.' AND pid=0')),'id','title'), array('prompt'=>'нет'))?>
    </div>


    <div class="line button">
        <? //save this news ?>
        <button type="submit" class="green medium"><span><?=Yii::t('app','Сохранить');?></span></button>
        <button type="submit" onclick="window.location.replace('<?=$this->createUrl("companies/category?type=".$type)?>');return false; " class="blue medium"><span>Отмена</span></button>

    </div>

    <?$this->endWidget(); ?>

			</div>
		</div>
	